<?php
//模块多就要放守卫
Route::group(['middleware' => ['web','auth:admin'], 'prefix' => 'shop', 'namespace' => 'Modules\Shop\Http\Controllers'], function()
{
//    商城路由
    Route::get('/', 'ShopController@index')->name('shop');
    //分类管理路由
    Route::resource('/category','CategoryController');


});

 
//article-route
Route::group(['middleware' => ['web', 'auth:admin'],'prefix'=>'shop','namespace'=>"Modules\Shop\Http\Controllers"], 
function () {
    Route::resource('article', 'ArticleController')->middleware("permission:admin,resource");
});